package edu.mama.college.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 课程
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Course implements Serializable {

    private int id;
    //课程名称
    private String name;
    //课程简介
    private String desc;
    //授课老师
    private String teacher;
    //总课时数（单位：小时）
    private int hour;
    //报名学员数量（单位：个）
    private int students;
    //封面图URL
    private String poster;
    //发布时间
    private Date createdTime;
    // 是否删除
    private boolean deleted;

    //课程章节
    private List<Lesson> lessons;
}
